package com.stone.design.mode.filter;

import com.stone.design.mode.filter.impl.ForTest1Filter;
import com.stone.design.mode.filter.impl.ForTest2Filter;

/**
 * 入口类
 *
 * @author wenpan 2023/11/17 10:06 下午
 */
public class FilterClient {

    public static void main(String[] args) {
        FilterChain filterChain = new StandardFilterChain();
        // 添加过滤器
        filterChain.addFilter(new ForTest1Filter());
        filterChain.addFilter(new ForTest2Filter());
        // 执行过滤器
        filterChain.doFilter(new StandardHttpRequest());
    }
}